﻿namespace DBConnection.Abstracts
{
    public abstract class AConnection
    {
        private static int _dbConst=0;

        protected int Def(ConnectionType a)
        {
            switch (a)
            {
                case ConnectionType.OleDb:
                    _dbConst = 1001;
                    break;
                case ConnectionType.MySQL:
                    _dbConst = 1002;
                    break;
                case ConnectionType.MsSQL:
                    _dbConst = 1003;
                    break;
                case ConnectionType.ODBCDb:
                    _dbConst = 1003;
                    break;
                case ConnectionType.Oracle:
                    _dbConst = 1004;
                    break;
                case ConnectionType.PostgreSQL:
                    _dbConst = 1005;
                    break;
                default:
                    _dbConst = 0;
                    break;
            }
            return _dbConst;
        }
    }
}
